package com.study.goal.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 学习目标对象 goals
 *
 * @author MT
 * @date 2025-09-03
 */
@Data
@TableName("goal")
public class Goal implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 目标ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 目标类型 STUDY:学习 LIFE:生活
     */
    @TableField(value = "goal_type")
    private String goalType;

    /**
     * 目标编码
     */
    @TableField(value = "goal_code")
    private String goalCode;

    /**
     * 父目标ID
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 关联用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 目标标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 目标描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 状态 PENDING:待处理 ASSIGNED:已分配 IN_PROGRESS:进行中 COMPLETED:已完成 CANCELLED:取消
     */
    @TableField(value = "status")
    private String status;

    /**
     * 目标开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 目标结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

}
